<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #id1{
            width: 200px;
            height: 200px;
            border: 1px black solid;
            background-color: gold;
        }
        #id2{
            width: 120px;
            height: 50px;
            background-color: green;
            margin: 75px auto;
        }
        .class1{
            width: 120px;
            height: 50px;
            background-color: gold;
            padding: 75px 40px;
        }
        .class2{
            width: 120px;
            height: 50px;
            background-color: green;
            
        }
    </style>
</head>
<body>
    <div id="id1">
        <div id="id2">

        </div>
    </div>

    <div class="class1">
        <div class="class2">

        </div>
    </div>
</body>
</html>